package com.ten.mall.vo;

import java.util.ArrayList;
import java.util.List;

public class PihaoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PihaoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPiNameIsNull() {
            addCriterion("pi_name is null");
            return (Criteria) this;
        }

        public Criteria andPiNameIsNotNull() {
            addCriterion("pi_name is not null");
            return (Criteria) this;
        }

        public Criteria andPiNameEqualTo(String value) {
            addCriterion("pi_name =", value, "piName");
            return (Criteria) this;
        }

        public Criteria andPiNameNotEqualTo(String value) {
            addCriterion("pi_name <>", value, "piName");
            return (Criteria) this;
        }

        public Criteria andPiNameGreaterThan(String value) {
            addCriterion("pi_name >", value, "piName");
            return (Criteria) this;
        }

        public Criteria andPiNameGreaterThanOrEqualTo(String value) {
            addCriterion("pi_name >=", value, "piName");
            return (Criteria) this;
        }

        public Criteria andPiNameLessThan(String value) {
            addCriterion("pi_name <", value, "piName");
            return (Criteria) this;
        }

        public Criteria andPiNameLessThanOrEqualTo(String value) {
            addCriterion("pi_name <=", value, "piName");
            return (Criteria) this;
        }

        public Criteria andPiNameLike(String value) {
            addCriterion("pi_name like", value, "piName");
            return (Criteria) this;
        }

        public Criteria andPiNameNotLike(String value) {
            addCriterion("pi_name not like", value, "piName");
            return (Criteria) this;
        }

        public Criteria andPiNameIn(List<String> values) {
            addCriterion("pi_name in", values, "piName");
            return (Criteria) this;
        }

        public Criteria andPiNameNotIn(List<String> values) {
            addCriterion("pi_name not in", values, "piName");
            return (Criteria) this;
        }

        public Criteria andPiNameBetween(String value1, String value2) {
            addCriterion("pi_name between", value1, value2, "piName");
            return (Criteria) this;
        }

        public Criteria andPiNameNotBetween(String value1, String value2) {
            addCriterion("pi_name not between", value1, value2, "piName");
            return (Criteria) this;
        }

        public Criteria andPiReportIsNull() {
            addCriterion("pi_report is null");
            return (Criteria) this;
        }

        public Criteria andPiReportIsNotNull() {
            addCriterion("pi_report is not null");
            return (Criteria) this;
        }

        public Criteria andPiReportEqualTo(String value) {
            addCriterion("pi_report =", value, "piReport");
            return (Criteria) this;
        }

        public Criteria andPiReportNotEqualTo(String value) {
            addCriterion("pi_report <>", value, "piReport");
            return (Criteria) this;
        }

        public Criteria andPiReportGreaterThan(String value) {
            addCriterion("pi_report >", value, "piReport");
            return (Criteria) this;
        }

        public Criteria andPiReportGreaterThanOrEqualTo(String value) {
            addCriterion("pi_report >=", value, "piReport");
            return (Criteria) this;
        }

        public Criteria andPiReportLessThan(String value) {
            addCriterion("pi_report <", value, "piReport");
            return (Criteria) this;
        }

        public Criteria andPiReportLessThanOrEqualTo(String value) {
            addCriterion("pi_report <=", value, "piReport");
            return (Criteria) this;
        }

        public Criteria andPiReportLike(String value) {
            addCriterion("pi_report like", value, "piReport");
            return (Criteria) this;
        }

        public Criteria andPiReportNotLike(String value) {
            addCriterion("pi_report not like", value, "piReport");
            return (Criteria) this;
        }

        public Criteria andPiReportIn(List<String> values) {
            addCriterion("pi_report in", values, "piReport");
            return (Criteria) this;
        }

        public Criteria andPiReportNotIn(List<String> values) {
            addCriterion("pi_report not in", values, "piReport");
            return (Criteria) this;
        }

        public Criteria andPiReportBetween(String value1, String value2) {
            addCriterion("pi_report between", value1, value2, "piReport");
            return (Criteria) this;
        }

        public Criteria andPiReportNotBetween(String value1, String value2) {
            addCriterion("pi_report not between", value1, value2, "piReport");
            return (Criteria) this;
        }

        public Criteria andPiStorageIsNull() {
            addCriterion("pi_storage is null");
            return (Criteria) this;
        }

        public Criteria andPiStorageIsNotNull() {
            addCriterion("pi_storage is not null");
            return (Criteria) this;
        }

        public Criteria andPiStorageEqualTo(Integer value) {
            addCriterion("pi_storage =", value, "piStorage");
            return (Criteria) this;
        }

        public Criteria andPiStorageNotEqualTo(Integer value) {
            addCriterion("pi_storage <>", value, "piStorage");
            return (Criteria) this;
        }

        public Criteria andPiStorageGreaterThan(Integer value) {
            addCriterion("pi_storage >", value, "piStorage");
            return (Criteria) this;
        }

        public Criteria andPiStorageGreaterThanOrEqualTo(Integer value) {
            addCriterion("pi_storage >=", value, "piStorage");
            return (Criteria) this;
        }

        public Criteria andPiStorageLessThan(Integer value) {
            addCriterion("pi_storage <", value, "piStorage");
            return (Criteria) this;
        }

        public Criteria andPiStorageLessThanOrEqualTo(Integer value) {
            addCriterion("pi_storage <=", value, "piStorage");
            return (Criteria) this;
        }

        public Criteria andPiStorageIn(List<Integer> values) {
            addCriterion("pi_storage in", values, "piStorage");
            return (Criteria) this;
        }

        public Criteria andPiStorageNotIn(List<Integer> values) {
            addCriterion("pi_storage not in", values, "piStorage");
            return (Criteria) this;
        }

        public Criteria andPiStorageBetween(Integer value1, Integer value2) {
            addCriterion("pi_storage between", value1, value2, "piStorage");
            return (Criteria) this;
        }

        public Criteria andPiStorageNotBetween(Integer value1, Integer value2) {
            addCriterion("pi_storage not between", value1, value2, "piStorage");
            return (Criteria) this;
        }

        public Criteria andPiDetailIsNull() {
            addCriterion("pi_detail is null");
            return (Criteria) this;
        }

        public Criteria andPiDetailIsNotNull() {
            addCriterion("pi_detail is not null");
            return (Criteria) this;
        }

        public Criteria andPiDetailEqualTo(String value) {
            addCriterion("pi_detail =", value, "piDetail");
            return (Criteria) this;
        }

        public Criteria andPiDetailNotEqualTo(String value) {
            addCriterion("pi_detail <>", value, "piDetail");
            return (Criteria) this;
        }

        public Criteria andPiDetailGreaterThan(String value) {
            addCriterion("pi_detail >", value, "piDetail");
            return (Criteria) this;
        }

        public Criteria andPiDetailGreaterThanOrEqualTo(String value) {
            addCriterion("pi_detail >=", value, "piDetail");
            return (Criteria) this;
        }

        public Criteria andPiDetailLessThan(String value) {
            addCriterion("pi_detail <", value, "piDetail");
            return (Criteria) this;
        }

        public Criteria andPiDetailLessThanOrEqualTo(String value) {
            addCriterion("pi_detail <=", value, "piDetail");
            return (Criteria) this;
        }

        public Criteria andPiDetailLike(String value) {
            addCriterion("pi_detail like", value, "piDetail");
            return (Criteria) this;
        }

        public Criteria andPiDetailNotLike(String value) {
            addCriterion("pi_detail not like", value, "piDetail");
            return (Criteria) this;
        }

        public Criteria andPiDetailIn(List<String> values) {
            addCriterion("pi_detail in", values, "piDetail");
            return (Criteria) this;
        }

        public Criteria andPiDetailNotIn(List<String> values) {
            addCriterion("pi_detail not in", values, "piDetail");
            return (Criteria) this;
        }

        public Criteria andPiDetailBetween(String value1, String value2) {
            addCriterion("pi_detail between", value1, value2, "piDetail");
            return (Criteria) this;
        }

        public Criteria andPiDetailNotBetween(String value1, String value2) {
            addCriterion("pi_detail not between", value1, value2, "piDetail");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("goods_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(Integer value) {
            addCriterion("goods_id =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(Integer value) {
            addCriterion("goods_id <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(Integer value) {
            addCriterion("goods_id >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_id >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(Integer value) {
            addCriterion("goods_id <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("goods_id <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<Integer> values) {
            addCriterion("goods_id in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<Integer> values) {
            addCriterion("goods_id not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("goods_id between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_id not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andPiTestIsNull() {
            addCriterion("pi_test is null");
            return (Criteria) this;
        }

        public Criteria andPiTestIsNotNull() {
            addCriterion("pi_test is not null");
            return (Criteria) this;
        }

        public Criteria andPiTestEqualTo(String value) {
            addCriterion("pi_test =", value, "piTest");
            return (Criteria) this;
        }

        public Criteria andPiTestNotEqualTo(String value) {
            addCriterion("pi_test <>", value, "piTest");
            return (Criteria) this;
        }

        public Criteria andPiTestGreaterThan(String value) {
            addCriterion("pi_test >", value, "piTest");
            return (Criteria) this;
        }

        public Criteria andPiTestGreaterThanOrEqualTo(String value) {
            addCriterion("pi_test >=", value, "piTest");
            return (Criteria) this;
        }

        public Criteria andPiTestLessThan(String value) {
            addCriterion("pi_test <", value, "piTest");
            return (Criteria) this;
        }

        public Criteria andPiTestLessThanOrEqualTo(String value) {
            addCriterion("pi_test <=", value, "piTest");
            return (Criteria) this;
        }

        public Criteria andPiTestLike(String value) {
            addCriterion("pi_test like", value, "piTest");
            return (Criteria) this;
        }

        public Criteria andPiTestNotLike(String value) {
            addCriterion("pi_test not like", value, "piTest");
            return (Criteria) this;
        }

        public Criteria andPiTestIn(List<String> values) {
            addCriterion("pi_test in", values, "piTest");
            return (Criteria) this;
        }

        public Criteria andPiTestNotIn(List<String> values) {
            addCriterion("pi_test not in", values, "piTest");
            return (Criteria) this;
        }

        public Criteria andPiTestBetween(String value1, String value2) {
            addCriterion("pi_test between", value1, value2, "piTest");
            return (Criteria) this;
        }

        public Criteria andPiTestNotBetween(String value1, String value2) {
            addCriterion("pi_test not between", value1, value2, "piTest");
            return (Criteria) this;
        }

        public Criteria andPiLeastIsNull() {
            addCriterion("pi_least is null");
            return (Criteria) this;
        }

        public Criteria andPiLeastIsNotNull() {
            addCriterion("pi_least is not null");
            return (Criteria) this;
        }

        public Criteria andPiLeastEqualTo(String value) {
            addCriterion("pi_least =", value, "piLeast");
            return (Criteria) this;
        }

        public Criteria andPiLeastNotEqualTo(String value) {
            addCriterion("pi_least <>", value, "piLeast");
            return (Criteria) this;
        }

        public Criteria andPiLeastGreaterThan(String value) {
            addCriterion("pi_least >", value, "piLeast");
            return (Criteria) this;
        }

        public Criteria andPiLeastGreaterThanOrEqualTo(String value) {
            addCriterion("pi_least >=", value, "piLeast");
            return (Criteria) this;
        }

        public Criteria andPiLeastLessThan(String value) {
            addCriterion("pi_least <", value, "piLeast");
            return (Criteria) this;
        }

        public Criteria andPiLeastLessThanOrEqualTo(String value) {
            addCriterion("pi_least <=", value, "piLeast");
            return (Criteria) this;
        }

        public Criteria andPiLeastLike(String value) {
            addCriterion("pi_least like", value, "piLeast");
            return (Criteria) this;
        }

        public Criteria andPiLeastNotLike(String value) {
            addCriterion("pi_least not like", value, "piLeast");
            return (Criteria) this;
        }

        public Criteria andPiLeastIn(List<String> values) {
            addCriterion("pi_least in", values, "piLeast");
            return (Criteria) this;
        }

        public Criteria andPiLeastNotIn(List<String> values) {
            addCriterion("pi_least not in", values, "piLeast");
            return (Criteria) this;
        }

        public Criteria andPiLeastBetween(String value1, String value2) {
            addCriterion("pi_least between", value1, value2, "piLeast");
            return (Criteria) this;
        }

        public Criteria andPiLeastNotBetween(String value1, String value2) {
            addCriterion("pi_least not between", value1, value2, "piLeast");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}